﻿using NewRetail.Application.Core.Entity;
using System;

namespace NewRetail.Application.Components.Platform.Entity
{
    public class PosIntegralUsageRule : BaseEntity, IReceiptEntity, IWarehouseEntity
    {
        public DateTime receiptDate { get; set; }
        public string receiptNo { get; set; }
        public string warehouseID { get; set; }
        /// <summary>
        /// 兑换金额，如1元
        /// </summary>
        public decimal exchangeAmount { get; set; }
        /// <summary>
        /// 兑换所需积分，如100积分
        /// </summary>
        public decimal usageIntegral { get; set; }
        /// <summary>
        /// 是否启用积分抵现
        /// </summary>
        public bool isAuditing { get; set; }
        /// <summary>
        /// 金额门槛，如订单总金额的50%
        /// </summary>
        public decimal amountThreshold { get; set; }
        /// <summary>
        /// 是否启用金额门槛
        /// </summary>
        public bool isEnabledAmouontThreshold { get; set; }
        /// <summary>
        /// 抵现金额上限‌，如每单最多抵扣5元
        /// </summary>
        public decimal upperLimitAmount { get; set; }
        /// <summary>
        /// 是否启用抵扣金额上限
        /// </summary>
        public bool isEnabledUpperLimitAmouont { get; set; }
        /// <summary>
        /// 单次兑换上限金额‌，如100元
        /// </summary>
        public decimal exchangeUpperAmount { get; set; }
        /// <summary>
        /// 是否启用单次兑换上限金额
        /// </summary>
        public bool isEnabledExchangeUpperAmouont { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        public int? operateUserID { get; set; }
        public DateTime? operateTime { get; set; }

        public Warehouse.Entity.Warehouse Warehouse { get; set; }
    }
}
